﻿using System;
using System.Linq.Expressions;

namespace Dapper.Library
{
    public interface IQuerySet<T>
    {
        /// <summary>
        /// And查询条件
        /// </summary>
        /// <param name="predicate"></param>
        /// <returns></returns>
        QuerySet<T> AndWhere(Expression<Func<T, bool>> predicate);

        /// <summary>
        /// Or查询条件
        /// </summary>
        /// <param name="predicate"></param>
        /// <returns></returns>
        QuerySet<T> OrWhere(Expression<Func<T, bool>> predicate);

        /// <summary>
        /// 增加NoLock
        /// </summary>
        /// <returns></returns>
        QuerySet<T> WithNoLock();
    }
}
